import request from '@/utils/request'

// 查询用户学院权限列表
export function listSysuserauth(query) {
  return request({
    url: '/project/sysuserauth/list',
    method: 'get',
    params: query
  })
}

// 查询用户学院权限详细
export function getSysuserauth(userId,type) {
  return request({
    url: '/project/sysuserauth/' + userId + '/' + type,
    method: 'get'
  })
}

// 新增用户学院权限
export function addSysuserauth(data) {
  return request({
    url: '/project/sysuserauth',
    method: 'post',
    data: data
  })
}

// 修改用户学院权限
export function updateSysuserauth(data) {
  return request({
    url: '/project/sysuserauth',
    method: 'put',
    data: data
  })
}

// 删除用户学院权限
export function delSysuserauth(userId) {
  return request({
    url: '/project/sysuserauth/' + userId,
    method: 'delete'
  })
}
